<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>Document</title>
    <script type="text/x-handlebars-template" id="tpl">
        <div component="$UI/system/components/justep/attachment/attachment" access="duud">
            <div class="x-attachment">
                <div class="x-attachment-content x-card-border">
                    <div class="x-attachment-cell"
                         data-bind="visible:$state.get() == 'upload' &amp;&amp; ($limit.get() == '-1' || $limit.get() > $attachmentItems.get().length)">
                        <div class="x-attachment-item x-item-upload"
                             data-bind="visible:$state.get() == 'upload' &amp;&amp; $access.get() % 512 >= 256">
                        </div>
                    </div>
                    <div class="x-attachment-cell" data-bind="visible:$state.get() == 'upload'">
                        <div class="x-attachment-item x-item-remove"
                             data-bind="click:changeState.bind($object,'remove'),visible:$access.get() % 2048 >= 1024">
                        </div>
                    </div>
                    <div data-bind="foreach:$attachmentItems">
                        <div class="x-attachment-cell">
                            <div class="x-attachment-item x-item-other"
                                 data-bind="click:$model.previewOrRemoveItem.bind($model),style:{opacity: $model.$access.get() % 4 >= 2 || $model.$state.get() == 'remove' ? '1.0' : '0.5',backgroundImage:($model.previewPicture.bind($model,$object))()}">
                                <a data-bind="visible:$model.$state.get() == 'remove'" class="x-remove-barget"></a>
                            </div>
                        </div>
                    </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
        </div>
    </script>
    <script src="./jquery-1.11.0.js"></script>

</head>
<body>




</body>
</html>